package cn.wolfcode.mapper;

import cn.wolfcode.domain.Employee;
import cn.wolfcode.domain.Role;
import cn.wolfcode.qo.QueryObject;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface RoleMapper {
    void deleteById(Long id);

    void insert(Role role);

    Role selectById(Long id);

    List<Role> selectAll();

    void updateById(Role role);

/*    int queryForCount(QueryObject qo);*/

    List<Role> queryForList(QueryObject qo);

    void insertBatchRelation(@Param("id") Long id, @Param("ids") Long[] ids);

    void deleteRelation(Long id);

    List<String> selectSnByEmpId(Long id);
}